package com.dsh.vegetable.action;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.dsh.code.entity.Page;
import com.dsh.vegetable.entity.VegetableGroup;
import com.dsh.vegetable.manager.VegetableGroupMng;
import com.github.pagehelper.PageInfo;


@Controller
@RequestMapping("vegetableGroup")
public class VegetableGroupManageAct {
@RequestMapping("vegetableGroup.do")
public String getAllVegetableGroup(VegetableGroup bean,HttpServletRequest request,Page varpage, Model model){
	PageInfo<VegetableGroup> page = vegetableGroupMng.getAll();
	model.addAttribute("page", page);
	return "bms/vegetableGroup/list";
}
@Resource(name="vegetableGroupMngImpl")
private VegetableGroupMng vegetableGroupMng;
}
